package com.gzs.learn.payment.pay.notify;

import com.gzs.learn.payment.pay.notify.event.OrderNotifyEvent;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * @author zhisong.guan
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class PaymentNotify {
    private final ApplicationContext applicationContext;

    public void post(OrderNotifyEvent event) {
        applicationContext.publishEvent(event);
    }
}
